/* DashboardMain组件的样式文件 - 从Home.vue中复制的样式 */

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* 主内容布局 */
.dashboard-main {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-left {
  display: flex;
  flex-direction: column;
}

.dashboard-right {
  display: flex;
  flex-direction: column;
}

/* 用户信息卡片 */
.profile-card {
  background: rgba(255, 255, 255, 0.7);
  color: #333; 
  border-radius: 16px; 
  padding: 24px;
  display: flex; 
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  width: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  height: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-image: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.5) 0%, 
    rgba(67, 97, 238, 0.15) 50%,
    rgba(58, 86, 212, 0.25) 100%);
  transition: all 0.3s ease;
}

.profile-card:hover {
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.25);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
}

.profile-header { 
  display: flex; 
  align-items: center; 
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.5);
  position: relative;
  z-index: 2;
}

.big-avatar {
  width: 64px; 
  height: 64px; 
  border-radius: 50%;
  background: rgba(67, 97, 238, 0.15);
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-weight: 700; 
  font-size: 24px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #4361ee;
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.25);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.profile-text {
  position: relative;
  z-index: 2;
}

.profile-text .name { 
  font-size: 18px; 
  font-weight: 700; 
  margin-bottom: 6px;
  color: #1e293b;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
}

.profile-text .name::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #4361ee, transparent);
  border-radius: 2px;
}

.profile-text .role { 
  opacity: 0.9; 
  font-size: 14px;
  color: #4361ee;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.profile-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease;
}

.profile-info-item:hover {
  transform: translateX(5px);
}

.info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(241, 245, 249, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.info-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5px;
  color: #4361ee;
}

.info-text {
  font-size: 14px;
  color: #1e293b;
  font-weight: 500;
}

.profile-stats {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(241, 245, 249, 0.5);
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.2);
  margin: auto -24px -24px -24px;
  padding: 16px 24px;
  border-radius: 0 0 12px 12px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.profile-stat-item {
  text-align: center;
  flex: 1;
  transition: transform 0.2s ease;
}

.profile-stat-item:hover {
  transform: translateY(-3px);
}

.profile-stat-item:not(:last-child) {
  border-right: 1px solid rgba(241, 245, 249, 0.3);
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #4361ee;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-label {
  font-size: 12px;
  color: #1e293b;
  font-weight: 500;
  opacity: 0.8;
}

/* 测试案例统计卡片 */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  height: 100%;
}

.stat-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 160px;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1;
}

.ui-automation::before { background: #4361ee; }
.api-automation::before { background: #f59e0b; }
.ai-generated::before { background: #10b981; }
.stress-testing::before { background: #ef4444; }
.current-tasks::before { background: #8b5cf6; }
.join-days::before { background: #06b6d4; }

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.stat-card-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5px;
}

.ui-automation .stat-icon { background: rgba(67, 97, 238, 0.1); color: #4361ee; }
.api-automation .stat-icon { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.ai-generated .stat-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.stress-testing .stat-icon { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.current-tasks .stat-icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.join-days .stat-icon { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }

.stat-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.stat-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
  justify-content: center;
}

.stat-number {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
  line-height: 1;
}

.ui-automation .stat-number { color: #4361ee; }
.api-automation .stat-number { color: #f59e0b; }
.ai-generated .stat-number { color: #10b981; }
.stress-testing .stat-number { color: #ef4444; }
.current-tasks .stat-number { color: #8b5cf6; }
.join-days .stat-number { color: #06b6d4; }

.stat-progress {
  margin-top: auto;
  text-align: center;
}

.progress-bar {
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
}

.ui-automation .progress-fill { background: #4361ee; }
.api-automation .progress-fill { background: #f59e0b; }
.ai-generated .progress-fill { background: #10b981; }
.stress-testing .progress-fill { background: #ef4444; }
.current-tasks .progress-fill { background: #8b5cf6; }
.join-days .progress-fill { background: #06b6d4; }

.progress-text {
  font-size: 16px;
  color: #64748b;
  text-align: center;
  font-weight: 500;
}

.stat-card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  gap: 8px;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 14px;
}

.stat-trend.positive {
  color: #10b981;
  font-weight: 500;
}

.stat-trend.neutral {
  color: #64748b;
  font-weight: 500;
}

/* API测试分析样式 */
.api-analysis-section {
  margin-top: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-outline {
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #4361ee;
  padding: 8px 16px;
}

.btn-outline:hover {
  background: rgba(67, 97, 238, 0.05);
  border-color: #4361ee;
}

.date-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.analysis-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.analysis-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.analysis-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.analysis-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.analysis-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5px;
}

.coverage-icon {
  background: rgba(67, 97, 238, 0.1);
  color: #4361ee;
}

.success-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.analysis-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.analysis-percent {
  font-size: 28px;
  font-weight: 700;
  color: #4361ee;
  display: flex;
  align-items: baseline;
}

.percent-sign {
  font-size: 16px;
  margin-left: 2px;
}

.analysis-body {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.analysis-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
}

.detail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.detail-dot.covered { background: #4361ee; }
.detail-dot.uncovered { background: #e2e8f0; }
.detail-dot.success { background: #10b981; }
.detail-dot.failed { background: #ef4444; }

.detail-value {
  font-weight: 600;
  color: #1e293b;
}

.detail-item.total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}